﻿<%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>uploadheadpic</title>

    <script type="text/javascript">


        /* 调用主页面的方法，用来显示主页面的图像 */
        var picUrl = '<%=TempData["PicUrl"]%>';
        if (picUrl != '') {
            picUrl = eval('(' + picUrl + ')');
            window.parent.hideLoading();
            window.parent.changePic(picUrl);
        }

        function UploadPic() {
            window.parent.showLoading();
            document.getElementById('UploadPicForm').submit();
        }
    </script>

</head>
<body style="margin: 0px; width: 400px; height: 15px; background-color: #fff">
    <form id="UploadPicForm" action="/system/uploadheadpic" method="post" enctype="multipart/form-data">
    <input type="file" id="pic" size="30" name="pic" /><input type="button" style="margin-left: 5px;
        height: 22px;" value="上  传" onclick="UploadPic()" />
    </form>
</body>
</html>
